<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>Login</title>

    <link href="css/style.css" rel="stylesheet">
    <link href="css/style-responsive.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->

    <style>
        .black_overlay{
            display: none;
            position: absolute;
            top: 0%;
            left: 0%;
            width: 100%;
            height: 100%;
            background-color: black;
            z-index:1001;
            -moz-opacity: 0.6;
            opacity:.60;
            filter: alpha(opacity=66);
        }
        .white_content {
            display: none;
            position: absolute;
            top: 25%;
            left: 25%;
            width: 45%;
            height: 45%;
            padding: 20px;
            border: 10px solid rgba(255, 255, 255, 0.06);
            background-color: white;
            text-align: center;
            z-index:1002;
            overflow: auto;
        }
    </style>
</head>

<body class="login-body">

<div class="container">

    <form class="form-signin" action="index.html" method="post" th:action="@{/}">

        <div class="form-signin-heading text-center">
            <h1 class="sign-title">监督园园学习</h1>
            <img style="width: 250px;height: 180px"
                 src="https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00572-1894.jpg" alt=""/>
        </div>
        <div>
            <!--            <p th:if="${isFail}" th:text="${facedFail}">-->

            <!--            </p>-->
            <div th:if="${isFail}">
                <div class="alert alert-danger" role="alert" style="text-align: center">查无此人，请重新登录</div>
            </div>
        </div>
        <!-- 加载中遮罩 -->
        <a class="btn btn-lg btn-login btn-block" style="" href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">
            <button class="btn btn-lg btn-login btn-block" type="submit">启动人脸登录</button>
        </a>
        <div id="light" class="white_content" >
            <font size="5">正在人脸识别中 ~ 请耐心等待<br></font>
            <img src='https://img-blog.csdnimg.cn/20190911191436470.gif' width='400px' height='200px'/>
        </div>
        <div id="fade" class="black_overlay"></div>

        <div class="login-wrap">
            <!--            <input type="text" class="form-control" placeholder="用户名" autofocus>-->
            <!--            <input type="password" class="form-control" placeholder="用户密码">-->

            <!--            <button class="btn btn-lg btn-login btn-block" type="submit">-->
            <!--                <i class="fa fa-check"></i>-->
            <!--            </button>-->

<!--            <button class="btn btn-lg btn-login btn-block" type="submit">启动人脸登录</button>-->





            <label class="checkbox">
                <input type="checkbox" value="remember-me"> 记住我
                <span class="pull-right">
                    <a data-toggle="modal" href="#myModal"> 无权限?</a>

                </span>
            </label>

        </div>

        <!-- Modal -->
        <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal"
             class="modal fade">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">无权限?</h4>
                    </div>
                    <div class="modal-body">
                        <p>输入你的邮箱以便重置照片</p>
                        <input type="text" name="email" placeholder="Email" autocomplete="off"
                               class="form-control placeholder-no-fix">

                    </div>
                    <div class="modal-footer">
                        <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
                        <button class="btn btn-primary" type="button">提交</button>
                    </div>
                </div>
            </div>
        </div>
        <!-- modal -->

    </form>

</div>


<!-- Placed js at the end of the document so the pages load faster -->

<!-- Placed js at the end of the document so the pages load faster -->
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/modernizr.min.js"></script>

</body>
</html>
